<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();
Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');

    //网站配置
    Route::get('settings','SettingsController@index')->name('settings.index');

    //商品
    //$router->resource('cmcstoreseckill','CmcStoreSeckillController');
    //拼团
    //$router->resource('cmcpromotionpintuan','CmcPromotionPintuanController');
    //商品管理
    $router->resource('cmcgoods', 'Goods\CmcGoodsController');

    //商品分类
    $router->resource('cmcgoodscategory', 'Goods\CmcGoodsCategoryController');
    //商品规格
    $router->resource('cmcgoodssku', 'Goods\CmcGoodsSkuController');
    //前台轮播图管理
    $router->resource('cmcalbum', 'Goods\CmcAlbumController');
    //测试
    $router->resource('text', 'TestingController');
    //砍价配置
    //砍价活动
    $router->resource('cmcpromotionbargain', 'activity\CmcPromotionBargainController');
    //砍价商品
    $router->resource('cmcpromotionbargaingood', 'activity\CmcPromotionBargainGoodController');
    // 上传
    Route::post('uploads','Goods\CmcGoodsEvaluateController@uploads')->name('uploads');
    // 商品评价
    $router->resource('cmcgoodsevaluate', 'Goods\CmcGoodsEvaluateController');
    // 秒杀配置
    $router->resource('cmcstoreseckillrule', 'Seckill\CmcStoreSeckillRuleController');
    // 秒杀商品
    $router->resource('cmcstoreseckill', 'Seckill\CmcStoreSeckillController');
    // 拼团列表
    $router->resource('cmcpromotionpintuan','Combination\CmcPromotionPintuanController');
    // 拼团组
    $router->resource('cmcpromotionpintuangroup','Combination\CmcPromotionPintuanGroupController');
    // 拼团订单
    $router->resource('cmcpromotionpintuanorder','Combination\CmcPromotionPintuanOrderController');
    // 优惠券
    $router->resource('cmcpromotioncoupon','Coupon\CmcPromotionCouponController');
    //用户管理
    $router->resource('cmcmembers', 'User\CmcMemberController');
    //运费模板//
    $router->resource('cmcshipping','Shipping\CmcOrderShippingFeeController');
    // 直播列表
    $router->resource('cmclivestudio','Live\CmcLiveStudioController');
    //订单表
    $router->resource('cmcpromotionorderlist','Order\CmcPromotionsOrderlistController');
    //拼团订单表
    $router->resource('cmcpromotionpintuanorder','Order\CmcPromotionPintuanOrderController');
    //用户积分管理
    $router->resource('cmcpointlog','Point\CmcPointLogController');
    //直播页面
    Route::get('newView',[\App\Admin\Controllers\Point\CmcViewController::class,'newView']);
    //会员
    $router->resource('systemlevel', 'System\SystemLevelController');
    $router->resource('mlevel', 'User\MemberLevelController');
    //拼团订单表
    $router->resource('menus','Wechat\MenusController');
    //微信模板消息
    $router->resource('wechattemplate','Wechat\WechatTemplate');
    //自动回复关键字
    $router->resource('wechatreply','Wechat\WechatReplyController');
    //城市数据
    $router->resource('city','setting\CmcSystemCityController');
    //物流公司
    $router->resource('express','setting\CmcExpressController');


});
